package top.goldenyear.porpoise.dev.code.config;

import java.util.HashSet;
import java.util.Set;
import lombok.Data;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;
import top.goldenyear.porpoise.framework.web.core.generator.enums.ModuleType;

/**
 * @author airhead
 */
@Configuration
@Inject("porpoise.code")
@Data
public class CodeConfig {
  private String author = "airhead";
  private String sourceDir;
  private String uiSourceDir;
  private Boolean overwrite = false;

  private String moduleType = ModuleType.MODULE.getName();

  /** 生成的 Java 代码的基础包 */
  private String basePackage = "com.goldsyear.porpoise";

  /** 数据库名数组 */
  private Set<String> dbSchemas =
      new HashSet<>() {
        {
          add("porpoise");
        }
      };
}
